package cn.dakaqi.enumerate;

/**
 * @author beliveli on 2016/5/12
 */
@SuppressWarnings("unused")
public enum CommonStatusCode {

    OK(0, "请求成功"),

    SERVER_EXCEPTION(1, "服务器通用异常"),

    COMMON_UPLOAD_FILE(2,"文件上传异常"),
    COMMON_CALL_LIMITED(3,"调用次数超限"),
    COMMON_HTTP_ACTION(4,"http请求异常"),
    COMMON_INSUFFICIENT_PERMISSIONS(5,"权限不足"),
    COMMON_INVALID_FORMAT(6,"无效数据格式"),
    COMMON_MISS_SIGN(7,"缺少签名参数"),
    COMMON_INVALID_SIGN(8,"错误的签名参数"),
    COMMON_MISS_CUSTOMER(9,"缺少合作伙伴代码"),
    COMMON_INVALID_CUSTOMER(10,"错误的合作伙伴代码"),
    COMMON_MISS_TIMESTAMP(11,"缺少时间戳参数"),
    COMMON_INVALID_TIMESTAMP(12,"错误的时间戳参数"),
    COMMON_MISS_VERSION(13,"缺少版本参数"),
    COMMON_INVALID_VERSION(14,"错误的版本参数"),
    COMMON_PARAM_ERROR(15,"参数错误"),
    COMMON_INVALID_TOKEN(16,"无效的TOKEN"),
    COMMON_USER_NOT_LOGIN(17,"用户未登录"),
    COMMON_VERIFIER_CODE_ERROR(18,"手机验证码不正确"),
    COMMON_FORMAT_ERROR(19,"格式转换失败"),

    USER_NOT_EXISTS(10001,"用户不存在"),
    USER_EXISTS(10002,"用户已存在"),
    USER_INFO_NOT_FULL(10003,"请完善个人资料"),
    USER_IS_FROST(10004,"用户已被冻结"),

    VOLUNTEER_NOT_EXISTS(12001,"志愿者不存在"),
    VOLUNTEER_GROUP_REL_NOT_EXISTS(12002,"志愿者未加入该志愿者团体"),

    ORGANIZATION_NOT_EXISTS(14001,"组织不存在"),

    GROUP_NOT_EXISTS(16001,"社团不存在"),

    ACTIVITY_NOT_EXISTS(18001,"活动不存在"),
    ACTIVITY_NOT_OUTSIDE_RECRUIT(18002,"本活动暂未对外招募"),
    ACTIVITY_IS_CLOSE(18003,"活动已被封存"),
    ACTIVITY_NOT_START(18003,"活动尚未开始"),

    SIGN_NOT_EXISTS(20001,"签到信息不存在"),
    SIGN_NOT_NEARBY(20002,"未到活动现场,不可以打卡"),
    SIGN_NO_TIME_TO(20003,"还未到签到时间"),

    INSURANCE_NOT_EXISTS(22001,"保险不存在"),

    WELFARE_NOT_EXISTS(24001,"福利不存在");

    private int statusCode;
    private String statusMessage;

    CommonStatusCode(int statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

}
